package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: zhaoxudong
 * @date: 2018/3/7 11:26
 * @Description:
 */
@Data
@ApiModel(description = "等级规则明细")
@JsonIgnoreProperties(ignoreUnknown = true)
public class LevelRule extends BaseBean {

    @ApiModelProperty("积分")
    private Integer score;
    @ApiModelProperty("等级")
    private Integer level;
    @ApiModelProperty("等级名称")
    private String levelName;
    @ApiModelProperty("阈值")
    @JsonIgnore
    private Integer threshold;

    public Integer getScore() {
        return this.threshold;
    }
}
